/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 发票邮寄登记 (OEM)

// 查询	/invoiceRelevant/selectRegistration
export const queryList = params => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/selectRegistration`, params);

// 新增 /recipient/oem/saveRecipient
export const saveData = params => axios.post(`${SERVER.WHOLESALES}/recipient/oem/saveRecipient`, params);

// 发票查询 /invoiceRelevant/getInvocieList
export const getInvoiceList = params => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/getInvocieList`, params);

// 隐藏发票查询 /invoiceRelevant/getInvocieList
export const getInvocieListHidden = params => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/getInvocieListHidden`, params);

// 联系人获取 /invoiceRelevant/getRecipient
export const getRecipient = params => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/getRecipient`, params);

// 登记 /invoiceRelevant/registration
export const registration = params => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/registration`, params);

// 全部登记 /invoiceRelevant/allRegistration
export const allRegistration = params => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/allRegistration`, params);

// 登记 /invoiceRelevant/registration
export const hidden = params => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/hidden`, params);

// 登记 /invoiceRelevant/registration
export const cancelHidden = params => axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/cancelHidden`, params);

//  导出	/invoiceRelevant/exportRegistration
export const exportExcel = params =>
  axios.post(`${SERVER.WHOLESALES}/invoiceRelevant/exportRegistration`, params, {
    responseType: 'blob'
  });

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
